package com.gcxy.dto;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@Api(value = "圈舍修改数据传输对象")
public class PenUpdateDTO {

    @ApiModelProperty(value = "圈舍编号")
    private Integer penId;

    @ApiModelProperty(value = "圈舍名称")
    @NotBlank(message = "圈舍名称不能为空")
    @Size(max = 50,message = "圈舍名称不能超过50个字符")
    private String penName;

}
